import turtle as tu

def tree_drawing(t,n:int,rotation:int,length:int):
    if n>10:
        return
    
    t.forward(length)
    t.left(rotation)
    tree_drawing(t,n+1,rotation,length*0.7)
    t.right(2*rotation)

    tree_drawing(t,n+1,rotation,length*0.7)
    t.left(rotation)
    t.backward(length)


t = tu.Turtle()
t.left(90)

t.up()

t.goto(0,-200)
t.down()

t.speed(0)
t.shape("turtle")

tree_drawing(t,0,30,100)

tu.exitonclick()


